<?php /* EL PSY CONGROO */ /* EL PSY CONGROO */
require '../../../zb_system/function/c_system_base.php';
require '../../../zb_system/function/c_system_admin.php';

$zbp->Load();
$action='root';
if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();}
if (!$zbp->CheckPlugin('danblog')) {$zbp->ShowError(48);die();}
$blogtitle='免费单栏主题配置';


$act = "";
if ($_GET['act']){
$act = $_GET['act'] == "" ? 'tpsz' : $_GET['act'];
}

require $blogpath . 'zb_system/admin/admin_header.php';
require $blogpath . 'zb_system/admin/admin_top.php';

if (isset($_POST['Keywords'])) {
    $zbp->Config('danblog')->Keywords = $_POST['Keywords'];
    $zbp->Config('danblog')->Description = $_POST['Description'];
    $zbp->Config('danblog')->dibubanquan = $_POST['dibubanquan'];
    $zbp->Config('danblog')->syad1kg = $_POST['syad1kg'];
    $zbp->Config('danblog')->syad2kg = $_POST['syad2kg'];
    $zbp->Config('danblog')->nyad1kg = $_POST['nyad1kg'];
    $zbp->Config('danblog')->nyad2kg = $_POST['nyad2kg'];
    $zbp->Config('danblog')->listimgkg = $_POST['listimgkg'];
    $zbp->Config('danblog')->listtxtkg = $_POST['listtxtkg'];
    $zbp->Config('danblog')->zzjqkg = $_POST['zzjqkg'];
    $zbp->Config('danblog')->syjqkg = $_POST['syjqkg'];
    $zbp->Config('danblog')->nyjqkg = $_POST['nyjqkg'];
    $zbp->SaveConfig('danblog');
    $zbp->ShowHint('good');
}
if (isset($_POST['ad1'])) {
    $zbp->Config('danblog')->ad1 = $_POST['ad1'];
    $zbp->Config('danblog')->ad2 = $_POST['ad2'];
    $zbp->Config('danblog')->ad3 = $_POST['ad3'];
    $zbp->Config('danblog')->ad4 = $_POST['ad4'];
    $zbp->SaveConfig('danblog');
    $zbp->ShowHint('good');
}
if (isset($_POST['zdycss'])) {     		 				
    $zbp->Config('danblog')->zdycss = $_POST['zdycss'];    	  	 	 	
    $zbp->SaveConfig('danblog');       		   
    $zbp->ShowHint('good');     						 
} 
?>
<div id="divMain">
    <div class="divHeader"><?php echo $blogtitle; ?></div>
    <div class="SubMenu">
        <?php danblog_SubMenu($act); ?>
        <a href="https://wpa.qq.com/msgrd?v=3&uin=2126245521&site=qq&menu=yes" target="_blank"><span class="m-right">技术支持</span></a>
        <a href="https://aizhancloud.com/" target="_blank"><span class="m-right">官方博客</span></a>
        <a href="https://aizhancloud.com/daohang/" target="_blank"><span class="m-right">官方导航</span></a>
    </div>
    <div id="divMain2">
      <?php if ($act == 'config'){ ?>
		<style type="text/css">
		    .jackht {border: 1px solid #ED0027;border-radius: 3px;padding: 5px 15px;margin-bottom: 15px;}
		    .jackht li {border-bottom: 1px solid #eee;line-height: 35px;}
		</style>
		<ul class="jackht">
        <li><strong style="color:#c00;">主题说明：</strong>注意：本页面是主题插件设置页面，请谨慎操作，错误的html代码会导致错位等问题；请仔细阅读各项配置项的配置说明，然后按照配置说明要求设置</li>
        <li><strong style="color:#c00;">主题声明：</strong>每个模板文件都有中文文字说明此模板的作用，请谨慎修改模板文件，如自行修改出错，官方该不免费售后。</li>
        <li><strong style="color:#c00;">主题作者：</strong>Jack</li>
        <li><strong style="color:#c00;">作者博客：</strong><a href="http://aizhancloud.com/" target="_blank">AiZhanCloud.Com</a></li>
        <li><strong style="color:#c00;">联系作者：</strong>QQ：2126245521/Email：admin@aizhancloud.cn</li>
    </ul>
        <?php } if ($act == 'jbsz') { ?>
            <form id="form2" name="form2" method="post">
                <?php if (function_exists('CheckIsRefererValid')) {
                    echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';
                } ?>
                <table width="100%" style="padding:0;margin:0;" cellspacing="0" cellpadding="0" class="tableBorder">
                    <tr>
                        <th width="15%">
                            <p align="center">项目名称</p>
                        </th>
                        <th width="50%">
                            <p align="center">文本/代码</p>
                        </th>
                        <th width="25%">
                            <p align="center">说明</p>
                        </th>
                    </tr>
                    <tr>
                        <td><label for="Keywords">
                                <p align="center">站点关键词</p>
                            </label></td>
                        <td>
                            <p align="left"><textarea name="Keywords" type="text" id="Keywords" rows="2" style="width:98%;"><?php echo $zbp->Config('danblog')->Keywords; ?></textarea></p>
                        </td>
                        <td>
                            <p align="left">填写站点关键词，多个英文逗号隔开</p>
                        </td>
                    </tr>
                    <tr>
                        <td><label for="Description">
                                <p align="center">站点描述</p>
                            </label></td>
                        <td>
                            <p align="left"><textarea name="Description" type="text" id="Description" rows="4" style="width:98%;"><?php echo $zbp->Config('danblog')->Description; ?></textarea></p>
                        </td>
                        <td>
                            <p align="left">填写站点描述</p>
                        </td>
                    </tr>
                    <tr>
                        <td><label for="dibubanquan">
                                <p align="center">底部版权</p>
                            </label></td>
                        <td>
                            <p align="left"><textarea name="dibubanquan" type="text" id="dibubanquan" rows="4" style="width:98%;"><?php echo $zbp->Config('danblog')->dibubanquan; ?></textarea></p>
                        </td>
                        <td>
                            <p align="left">免费主题必须保留：Theme By &lt;a href=&quot;https://aizhancloud.com&quot; target=&quot;_blank&quot;&gt;爱站云&lt;/a&gt;</p>
                        </td>
                    </tr>
                </table>
                <br />
                <table width="100%" style="padding:0;margin:0;" cellspacing="0" cellpadding="0" class="tableBorder">
                    <tr>
                        <th  colspan="6">
                            <p align="center">开关专区 (小白需谨慎设置) </p>
                        </th>
                    </tr>
                    <tr>
                        <th width="16%">
                            <p align="center">名称</p>
                        </th>
                        <th width="16%">
                            <p align="center">开关</p>
                        </th>
                        <th width="16%">
                            <p align="center">说明</p>
                        </th>
                        <th width="16%">
                            <p align="center">名称</p>
                        </th>
                        <th width="16%">
                            <p align="center">开关</p>
                        </th>
                        <th width="16%">
                            <p align="center">说明</p>
                        </th>
                    </tr>
                    <tr>
                        <td><label for="syad1kg">
                                <p align="center">首页顶部广告开关</p>
                            </label></td>
                        <td>
                            <p align="center"><input name="syad1kg" type="text" value="<?php echo $zbp->Config('danblog')->syad1kg; ?>" class="checkbox" style="display:none;" /></p>
                        </td>
                        <td>
                            <p align="left">开启则显示首页顶部广告</p>
                        </td>
                        <td><label for="syad2kg">
                                <p align="center">首页底部广开关</p>
                            </label></td>
                        <td>
                            <p align="center"><input name="syad2kg" type="text" value="<?php echo $zbp->Config('danblog')->syad2kg; ?>" class="checkbox" style="display:none;" /></p>
                        </td>
                        <td>
                            <p align="left">开启则显示首页底部广告</p>
                        </td>
                    </tr>
                    <tr>
                        <td><label for="nyad1kg">
                                <p align="center">内页顶部广告开关</p>
                            </label></td>
                        <td>
                            <p align="center"><input name="nyad1kg" type="text" value="<?php echo $zbp->Config('danblog')->nyad1kg; ?>" class="checkbox" style="display:none;" /></p>
                        </td>
                        <td>
                            <p align="left">开启则显示内页顶部广告</p>
                        </td>
                        <td><label for="nyad2kg">
                                <p align="center">内页底部广开关</p>
                            </label></td>
                        <td>
                            <p align="center"><input name="nyad2kg" type="text" value="<?php echo $zbp->Config('danblog')->nyad2kg; ?>" class="checkbox" style="display:none;" /></p>
                        </td>
                        <td>
                            <p align="left">开启则显示内页底部广告</p>
                        </td>
                    </tr>
                    <tr>
                        <td><label for="listimgkg">
                                <p align="center">列表缩略图开关</p>
                            </label></td>
                        <td>
                            <p align="center"><input name="listimgkg" type="text" value="<?php echo $zbp->Config('danblog')->listimgkg; ?>" class="checkbox" style="display:none;" /></p>
                        </td>
                        <td>
                            <p align="left">开启则显示列表缩略图</p>
                        </td>
                        <td><label for="listtxtkg">
                                <p align="center">列表文字描述开关</p>
                            </label></td>
                        <td>
                            <p align="center"><input name="listtxtkg" type="text" value="<?php echo $zbp->Config('danblog')->listtxtkg; ?>" class="checkbox" style="display:none;" /></p>
                        </td>
                        <td>
                            <p align="left">开启则显示列表的描述</p>
                        </td>
                    </tr>
                    <tr>
                        <th width="16%" colspan="2">
                            <p align="center">整站加载项（默认开启）</p>
                        </th>
                        <th width="16%" colspan="2">
                            <p align="center">首页加载项（默认关闭）</p>
                        </th>
                        <th width="16%" colspan="2">
                            <p align="center">内页加载项（默认关闭）</p>
                        </th>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <p align="center"><input name="zzjqkg" type="text" value="<?php echo $zbp->Config('danblog')->zzjqkg; ?>" class="checkbox" style="display:none;" /></p>
                        </td>
                        <td colspan="2">
                            <p align="center"><input name="syjqkg" type="text" value="<?php echo $zbp->Config('danblog')->syjqkg; ?>" class="checkbox" style="display:none;" /></p>
                        </td>
                        <td colspan="2">
                            <p align="center"><input name="nyjqkg" type="text" value="<?php echo $zbp->Config('danblog')->nyjqkg; ?>" class="checkbox" style="display:none;" /></p>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            说明1：首页/内页广告开关，开启则显示，设置广告内容请移步到广告设置中设置；
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            说明2：列表缩略图和列表描述为列表显示文章的图片和文章的简介，默认是不显示的，开启则显示；
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <p>说明3：整站/首页/内页加载项为主题加载zblog程序的（jquery-2.2.4.min.js、zblogphp.js、c_html_js_add.php）三项加载项</p>
                            <p>默认开启（整站加载），如果想只在文章页开启加载项只需要开启（整站加载项和内页加载项）整站加载项和内页加载项即可</p>
                            <p>如果只想在首页和文章页开启加载项，那就整站/首页/内页全部开启即可，如果全站不需要加载项可以直接开启整站加载；</p>
                            <p>温馨提示：文章页不加载的话会影响到无法评论，某些插件也需要加载页面jQ的，所以小白不要乱设置哦！</p>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <input name="" type="Submit" class="button" style="margin-top:10px;padding:0 auto;" value="保存" />
                        </td>
                    </tr>
                </table>
            </form>
        <?php } if ($act == 'guanggao') { ?>
            <form id="form2" name="form2" method="post">
                <?php if (function_exists('CheckIsRefererValid')) {
                    echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';
                } ?>
                <table width="100%" style='padding:0;margin:0;' cellspacing='0' cellpadding='0' class="tableBorder">
                    <tr>
                        <th width="20%">
                            <p align="center">名称</p>
                        </th>
                        <th width="50%">
                            <p align="center">内容</p>
                        </th>
                        <th width="30%">
                            <p align="center">说明</p>
                        </th>
                    </tr>
                    <tr>
                        <td><label for="ad1">
                                <p align="center">首页顶部广告</p>
                            </label></td>
                        <td>
                            <p align="left"><textarea name="ad1" type="text" id="ad1" rows="4" style="width:98%;"><?php echo $zbp->Config('danblog')->ad1; ?></textarea></p>
                        </td>
                        <td>
                            <p align="left">首页顶部全局展示的广告位，支持html代码。</p>
                        </td>
                    </tr>
                    <tr>
                        <td><label for="ad2">
                                <p align="center">首页底部广告</p>
                            </label></td>
                        <td>
                            <p align="left"><textarea name="ad2" type="text" id="ad2" rows="4" style="width:98%;"><?php echo $zbp->Config('danblog')->ad2; ?></textarea></p>
                        </td>
                        <td>
                            <p align="left">首页底部全局展示的广告位，支持html代码。</p>
                        </td>
                    </tr>
                    <tr>
                        <td><label for="ad3">
                                <p align="center">文章顶部广告</p>
                            </label></td>
                        <td>
                            <p align="left"><textarea name="ad3" type="text" id="ad3" rows="4" style="width:98%;"><?php echo $zbp->Config('danblog')->ad3; ?></textarea></p>
                        </td>
                        <td>
                            <p align="left">文章顶部展示的广告位，支持html代码。</p>
                        </td>
                    </tr>
                    <tr>
                        <td><label for="ad4">
                                <p align="center">文章底部广告</p>
                            </label></td>
                        <td>
                            <p align="left"><textarea name="ad4" type="text" id="ad4" rows="4" style="width:98%;"><?php echo $zbp->Config('danblog')->ad4; ?></textarea></p>
                        </td>
                        <td>
                            <p align="left">文章底部全局展示的广告位，支持html代码。</p>
                        </td>
                    </tr>
                </table>
                <br />
                <input name="" type="Submit" class="button" value="保存" />
            </form>
        <?php } if ($act == 'zdycss') { ?>
            <form id="form3" name="form3" method="post">
                <?php if (function_exists('CheckIsRefererValid')) {
                    echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';
                } ?>
                <table width="100%" style='padding:0;margin:0;' cellspacing='0' cellpadding='0' class="tableBorder">
                    <tr>
                        <th width="20%">
                            <p align="center">名称</p>
                        </th>
                        <th width="60%">
                            <p align="center">内容</p>
                        </th>
                        <th width="20%">
                            <p align="center">说明</p>
                        </th>
                    </tr>
                    <tr>
                        <td><label for="zdycss">
                                <p align="center">自定义CSS</p>
                            </label></td>
                        <td>
                            <p align="left"><textarea name="zdycss" type="text" id="zdycss" rows="12" style="width:98%;"><?php echo $zbp->Config('danblog')->zdycss; ?></textarea></p>
                        </td>
                        <td>
                            <p align="left">自定义CSS 如更改<body>的css，直接输入 body {这里是你的浮动}; 即可；详情查看：<a href="https://aizhancloud.com/zbbk">https://aizhancloud.com/zbbk</a>这里查看小清新主题的相关设置！</p>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3"><input name="" type="Submit" class="button" value="保存"/></td>
                    </tr>
                </table>
            </form>
        <?php } ?>
    </div>
</div>
<?php
require $blogpath . 'zb_system/admin/admin_footer.php';
RunTime();
?>